package com.cz.background.mapper.common;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cz.background.dto.common.user.UpdateUserStatusDTO;
import com.cz.background.dto.common.user.UserQueryDTO;
import com.cz.background.entity.common.SysUser;


@Mapper
public interface SysUserMapper {
    int deleteByPrimaryKey(String id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    SysUser findByNameAndPassword(@Param("name") String name, @Param("password") String password);

    List<SysUser> findByAll(UserQueryDTO userQueryDTO);

    int updateStatus(UpdateUserStatusDTO updateUserStatusDTO);

    int deleteByIdIn(@Param("ids") List<String> ids);


}